// pages/member/myTeacher/list/index.js
import {
  request
} from '../../../../request';
Page({

  /**
   * 页面的初始数据
   */
  data: {
    teacherList:[],
  },
  onShow: function () {
    this.initData();
  },
  initData(){
    request("/gym/studentAssignment/teacher/list/"+wx.getStorageSync('userId'), "GET").then(resopnse => {
      this.setData({
        teacherList: resopnse.teachers
      });
    })
  }
})